# -*- coding:utf-8 -*-
"""
Author：Administrator
Date:2021年08月20日
"""
from docx.shared import Cm
from docx import Document

file = Document('./练习/18结果02.docx')
file.sections[0].header_distance = Cm(1)
file.sections[0].footer_distance = Cm(1)


file.save('./练习/18结果03.docx')